package com.ruoyi.cpsp.service;
/*
    @author neu.xiangwenjuan
    @create 2023/3/14
*/

import com.ruoyi.cpsp.domain.CurrentPerformanceData;
import com.ruoyi.cpsp.domain.CurrentPerformanceDataEn;
import com.ruoyi.cpsp.domain.CurrentPerformanceTotal;

import java.util.List;

public interface CurrentPerformanceDataService {

    int insert(CurrentPerformanceData currentPerformanceData);

    int updateByPrimaryKeySelective(CurrentPerformanceData record);

    List<CurrentPerformanceDataEn> selectAll();

    List<CurrentPerformanceData> getAllInfo(Integer state);

    List<CurrentPerformanceDataEn> selectDataByIdCard(List<String> idCardList);

    List<CurrentPerformanceDataEn> selectSelective(String department, Integer teamGroup, String employeeInfo);

    CurrentPerformanceTotal selectDataTotal(String departmentId, Integer teamGroupId);

    double selectSum(Integer year, Integer quarter);

    double selectSumDepart(List<String> idCardList, Integer year, Integer quarter);

    int selectCountByQuarter(Integer year,
                             Integer quarter);

    CurrentPerformanceData selectDataByEmployee(Integer year,
                                                  Integer quarter,
                                                  String employeeIdCard);

    int insertPerformance();

    int deleteCurrentPerformanceData();

    int updateCurrentAnnotation(List<String> idCardList);
}
